package org.example.easybuy.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.example.easybuy.entity.Car;
import org.example.easybuy.entity.CarDetail;
import org.example.easybuy.entity.Order;

import java.util.List;
import java.util.Map;

public interface CarService {
    Map<String,Object> addIntoCar(String loginName, CarDetail carDetail) throws JsonProcessingException;
    boolean deleteDetail(int id,String loginName) throws JsonProcessingException;
    boolean updateCarFromRedis(List<CarDetail> list,String loginName) throws JsonProcessingException;
    Order generateOrder(Map<String,Object> map) throws JsonProcessingException;
    void doChangeOrder(String orderId);
}
